package org.basis.algorithm.graph.common;

import java.util.List;

/**
 * 图的节点
 *
 * @author Mr_wenpan@163.com 2021/12/22 21:25
 */
public class Node {
    /**
     * 该点的值
     */
    public int value;
    /**
     * 该点的入度
     */
    public int in;
    /**
     * 该点的出度
     */
    public int out;
    /**
     * 由该点能直接到达的点集合
     */
    public List<Node> nexts;
    /**
     * 由该点发射出去的边集合
     */
    public List<Edge> edges;

    public Node() {
    }

    public Node(int value) {
        this.value = value;
    }

    public Node(int value, int in, int out, List<Node> nexts, List<Edge> edges) {
        this.value = value;
        this.in = in;
        this.out = out;
        this.nexts = nexts;
        this.edges = edges;
    }
}
